@extends('admin.index')
@section('name')
    <h1><span class="label label-default"> Vip管理  </span></h1>
    <hr>

    <table class="table table-bordered  table-hover" id="tent">
        <tr>
            <th>ID</th>
            <th>icon</th>
            <th>用户名</th>
            <th>注册时间</th>
            <th>大V</th>
            <th>Vip到期时间</th>
            {{--<th>上次登录时间</th>--}}
            <th>拉黑</th>
            <th>操作</th>
        </tr>
        @foreach($res as $list)
            <tr id="nei">
                <th scope="row">{{$list->id}}</th>
                <th><img src="{{$list->u_img}}" alt="" width="50px;" height="60px;">  </th>
                <th>{{$list->u_name}}</th>
                <th>{{$list->u_regtime}}</th>
                <th>  @if($list->u_v == 0) NO @else YES @endif  </th>
                <th>{{$list->u_date}}</th>
                <th id="dis">
                    @if(($list->u_display) == 1)
                        <a href="{{url('adm/vip/black')}}/{{$list->id}}/{{$list->u_display}}" class="btn btn-warning" id="but1" >加入黑名单</a>
                    @elseif(($list->u_display) == 2)
                        <a href="{{url('adm/vip/black')}}/{{$list->id}}/{{$list->u_display}}" class="btn btn-danger" id="but1" onclick="black({{$list->id}},{{$list->u_display}})">已拉黑</a>
                    @endif



                </th>
                <th>
                    {{--<button class="btn btn-info" onclick="del()">详细信息</button>--}}
                    <a href="{{url('adm/vip/details')}}/{{$list->id}}" class="btn btn-info" id="but1">详细信息</a>

                </th>
            </tr>

        @endforeach
    </table>
    {{$res->links()}}
    <script>


    </script>


@endsection
